import request from '@/utils/request'

// 查询网络安全事故列表
export function listInsurance_trouble(query) {
  return request({
    url: '/insurance/insurance_trouble/list',
    method: 'get',
    params: query
  })
}

// 查询网络安全事故详细
export function getInsurance_trouble(troubleId) {
  return request({
    url: '/insurance/insurance_trouble/' + troubleId,
    method: 'get'
  })
}

// 新增网络安全事故
export function addInsurance_trouble(data) {
  return request({
    url: '/insurance/insurance_trouble',
    method: 'post',
    data: data
  })
}

// 修改网络安全事故
export function updateInsurance_trouble(data) {
  return request({
    url: '/insurance/insurance_trouble',
    method: 'put',
    data: data
  })
}

// 删除网络安全事故
export function delInsurance_trouble(troubleId) {
  return request({
    url: '/insurance/insurance_trouble/' + troubleId,
    method: 'delete'
  })
}
